<script setup lang="ts">
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import ServerList from './components/ServerList.vue'
</script>

<template>
  <div class="app">
    <el-config-provider :locale="zhCn">
      <div class="container">
        <h1 class="title">联合实验室设备管理</h1>
        <ServerList />
      </div>
    </el-config-provider>
  </div>
</template>

<style>
#app {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.app {
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.container {
  width: 95%;
  max-width: 2200px;
  min-width: 320px;
  margin: 0;
  padding: 0;
}

.title {
  text-align: center;
  color: #409EFF;
  margin: 0;
  padding: 10px 0;
  font-size: 22px;
  font-weight: bold;
}

body {
  margin: 0;
  padding: 0;
  font-size: 14px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
  }
  
  .title {
    font-size: 18px;
  }
}
</style>
